package com.jy.api.misc.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.util.Collection;
import java.util.Date;
import java.util.List;

@Data
@ApiModel("值域")
public class ZhiYuDto {

    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty("值集标识符")
    private String zhiJiBSF;

    @ApiModelProperty("值集名称")
    private String zhiJiMC;

    @ApiModelProperty("版本")
    private Integer banBen;

    @ApiModelProperty("描述")
    private String miaoShu;

    @ApiModelProperty("状态。2：使用，3：作废")
    private Integer status;

    @ApiModelProperty("标准类型, 国标_1, 省标_2, 团体标准_3, 项目标准_4, 公司级别_5")
    private Integer biaoZhunLX;

    @ApiModelProperty("发布机构ID")
    private String faBuJGID;

    @ApiModelProperty("发布机构名称")
    private String faBuJGMC;

    @ApiModelProperty("发布时间")
    private LocalDate faBuSJ;

    @ApiModelProperty("生效时间")
    private LocalDate shengXiaoSJ;

    @ApiModelProperty("失效时间")
    private LocalDate shiXiaoSJ;

    @ApiModelProperty("来源名称")
    private String laiYuanMC;

    @ApiModelProperty("来源文件的ID")
    private String laiYuanId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date chuangJianSJ;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date xiuGaiSJ;

    @ApiModelProperty("编码系统标识符")
    private List<String> bianMaXTBSF;

    private Collection<DaiMaDto> daiMaList;
}
